package com.office.doctorsoffice.domain;

import java.lang.String;
import java.util.ArrayList;
import java.util.List;

public class Diagnosis {
	
	private int Diagnosis_ID;
	private String Diagnosis_Description;
	private List<String> Prescription;
	private List<String> Drugs;
	
	private Visit visit;
	
	public Diagnosis () {
		this.setDiagnosis_ID(Diagnosis_ID);
		this.Diagnosis_Description = null;
		this.setPrescription(new ArrayList<String>());
		this.setDrugs(new ArrayList<String>());
	}

	public void update(Diagnosis newDiagnosis) {
		final String strTemp;
        final List<String> listStrTemp;
        final List<String> listStrTemp1;
        
        strTemp = newDiagnosis.getDiagnosis_Description();
        if (strTemp != null) {
            this.Diagnosis_Description = strTemp;
        }
        
        listStrTemp = newDiagnosis.getPrescription();
        if (!listStrTemp.isEmpty()) {
            this.setPrescription(listStrTemp);
        }
        
        listStrTemp1 = newDiagnosis.getDrugs();
        if (!listStrTemp1.isEmpty()) {
            this.setDrugs(listStrTemp1);
        }
	 }
	/**
	 * @param diagnosis_ID the diagnosis_ID to set
	 */
	public void setDiagnosis_ID(int diagnosis_ID) {
		Diagnosis_ID = diagnosis_ID;
	}

	/**
	 * @return the diagnosis_ID
	 */
	public int getDiagnosis_ID() {
		return Diagnosis_ID;
	}

	/**
	 * @param diagnosis_Description the diagnosis_Description to set
	 */
	public void setDiagnosis_Description(String diagnosis_Description) {
		Diagnosis_Description = diagnosis_Description;
	}

	/**
	 * @return the diagnosis_Description
	 */
	public String getDiagnosis_Description() {
		return Diagnosis_Description;
	}

	/**
	 * @param prescription the prescription to set
	 */
	public void setPrescription(List<String> prescription) {
		Prescription = prescription;
	}

	/**
	 * @return the prescription
	 */
	public List<String> getPrescription() {
		return Prescription;
	}

	/**
	 * @param drugs the drugs to set
	 */
	public void setDrugs(List<String> drugs) {
		Drugs = drugs;
	}

	/**
	 * @return the drugs
	 */
	public List<String> getDrugs() {
		return Drugs;
	}
}
